package com.myrpc.codec;

/**
 * 序列化，将obj转换为byte[]
 */
public interface Encoder {
    byte[] encode(Object obj);
}
